<template>
	<div id="images" class="swiper-container" style="font-size: 0;">
		<div class="swiper-wrapper">
			<div v-for="item in images" class="swiper-slide"><img v-bind:src="FileUrl+item" /></div>
		</div>
		<!-- 如果需要分页器 -->
		<br />
		<div class="swiper-pagination" id="images-el"></div>
	</div>
</template>

<script>
	import Swiper from 'swiper';
	export default {
		data() {
			return {
				FileUrl: config.FileUrl
			}
		},
		props: ["images"],
		updated() {
			new Swiper('#images', {
				loop: false,
				autoplay: false,
				autoplayDisableOnInteraction: false, //用户操作完轮播图之后，继续轮播
				// 如果需要分页器
				pagination: {
					el: '#images-el',
				}
			})
		}
	}
</script>
<style>
	@import "../../assets/css/swiper.min.css";

	#images .swiper-pagination-bullet-active {
		background: #e82c3a;
	}
</style>
